package mytask.dao;

import java.util.List;

import mytask.model.Project;
import mytask.model.ProjectMember;
import mytask.model.User;
import mytask.model.UserRole;

public interface ProjectMemberDAO {

	public void saveProjectMember(ProjectMember member);

	public List<ProjectMember> listProjectMembers();

	public List<ProjectMember> listProjectMembers(final User user);
	
    public List<ProjectMember> listProjectMembers(final Project project);
    
    public List<ProjectMember> listProjectMembers(final User user, final UserRole role);
	
	public ProjectMember getProjectMember(final User user, final Project project);
	
	public ProjectMember getProjectMember(long id);
}
